workflows: add build-cryptography.yml for riscv64 wheels - #362
Open
threexc wants to merge 1 commit into
Open
Conversation
threexc
force-pushed
the
tgamblin/cryptography
branch
from
August 26, 2026 03:08
ce9b32c to
e99b4f0
Compare
justeph
reviewed
Aug 26, 2026
threexc
force-pushed
the
tgamblin/cryptography
branch
2 times, most recently
from
August 26, 2026 14:46
6d7884d to
1acb031
Compare
The upstream `container:` job can't be reused as-is: their custom ghcr.io/pyca/cryptography-manylinux2014-style images (Rust + a static OpenSSL build preinstalled) don't exist for riscv64, and the generic quay.io/pypa/manylinux_2_39_riscv64 image ships no Node, so a native `container:` job can't run the checkout/artifact actions inside it. Drive it with `podman run` instead (same pattern as build-orjson.yml), keeping the actions on the host and running upstream's own build commands inside - only dropping OPENSSL_STATIC/OPENSSL_DIR/ --sbom-include (no static OpenSSL or SBOM to point at; openssl-sys finds the image's dynamic system OpenSSL via pkg-config instead) and installing Rust/openssl-devel ourselves. Split the real pytest suite into its own `test` job (upstream's wheel-builder.yml only smoketests; the full suite lives in a separate ci.yml matrix out of scope here) using cryptography_vectors straight from public PyPI instead of building it from vectors/. We need to allow SHA1 in the test job's OpenSSL config, otherwise the manylinux image's system openssl.cnf rejects SHA1 signing/verification by default, causing 11 test failures. It isn't bundled by auditwheel, so it never reaches the shipped wheel - only this in-container test run. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
threexc
force-pushed
the
tgamblin/cryptography
branch
from
August 26, 2026 15:59
1acb031 to
9f88e1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream statically links a prebuilt OpenSSL that only exists for their own platforms; we link the manylinux_riscv64 image's system OpenSSL dynamically instead and let auditwheel vendor libssl/libcrypto into the wheel.